package 赎金信.src.test;

public class toCharArray {
    public static void main(String[] args) {
        String str = "hello world";
        char[] chars = str.toCharArray();

        for (char aChar : chars) {
            System.out.println(aChar);
        }
    }
}
